-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set InvariantGlobalization in api template #47066
Conversation
The api template is updating, see dotnet/aspnetcore#47066. This syncs that change here.
I'm onboard with this. Just want to represent @DamianEdwards opinion that we need to make sure that we've done the right thing in terms of MSBuild docs. We need that checklist in an issue so we can finalize this. |
I went ahead and took care of this in dotnet/msbuild#8543 since it was fairly straightforward to do. |
Right, we just need to follow up on VS property page support. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update other templates? webapi, grpc, worker?
Figure out how to test that culture is disabled. I'm not sure how to easily do this. The default template endpoints are returning invariant data already.
API server applications do not typically need culture aware behavior. A better default is to use invariant globalization mode for API apps. This allows for the globalization code to be trimmed away, making the final executable size smaller. It also reduces startup and memory consumption because ICU isn't loaded. This also allows the apps to run with consistent behavior on container images that don't include ICU, making the container image smaller as well. Fix dotnet#47029
8ba2671
to
f7073d4
Compare
* Set InvariantGlobalization in BasicMinimalApi and BasicGrpc apps The api template is updating, see dotnet/aspnetcore#47066. This syncs that change here.
Hi @Varorbc. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
Hi @eerhardt. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
FYI: |
Hi @AlmightyLks. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
FYI this is purely a SqlClient-related issue that has nothing to do with EF per se. |
Hi @roji. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
API server applications do not typically need culture aware behavior. A better default is to use invariant globalization mode for API apps.
This allows for the globalization code to be trimmed away, making the final executable size smaller. It also reduces startup and memory consumption because ICU isn't loaded.
This also allows the apps to run with consistent behavior on container images that don't include ICU, making the container image smaller as well.
Fix #47029